package com.bob.demo.api.model;

import java.io.Serializable;
import lombok.Data;

@Data
public class Result<T> implements Serializable {
	
	/**
	 * 返回结果
	 */
	private static final long serialVersionUID = -622712244706685930L;
	private String msg;
	private String code;
	private Boolean success;
	private T data;

	public Result(String code, String msg,Boolean success) {  
        this.code = code;  
        this.msg = msg;  
        this.success = success;
    }  
	public Result(String code, String msg,Boolean success,T data) {  
        this.code = code;  
        this.msg = msg;  
        this.success = success;
        this.data = data;
    } 
}
